from django.urls import path, include
from rest_framework.routers import DefaultRouter

from Apps.Profile import views

router = DefaultRouter()  # 实例化router

# 注册user
router.register(r'emailcodes', views.EmailCodeViewSet, basename='emailcodes')
router.register(r'users', views.UserViewSet, basename='users')
router.register(r'showusers', views.ShowUserViewSet, basename='showusers')

urlpatterns = [
    path('', include(router.urls)),
    path('login/', views.LoginViewSet.as_view()),
]
